package com.sh.learn.ibeifeng.webservice.axis;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@SuppressWarnings("serial")
public class Address implements Serializable {
	// 不仅类要可序列化，其中属性也要可序列化
	private String address;
	private String city;
	private String country;
	// 集合
	private String[] array;
	private List<Integer> list;
	private boolean isExist;

	// 内部类，也需支持序列化，所以内部类还必须是static
	@SuppressWarnings("unused")
    private Innerclass innC;

	public static class Innerclass implements Serializable {
		private String innname;

		public String getInnname() {
			return innname;
		}

		public void setInnname(String innname) {
			this.innname = innname;
		}
	}

	public Address() {
		list = new ArrayList<Integer>();
		list.add(1);
		list.add(2);
		list.add(3);
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String[] getArray() {
		return array;
	}

	public void setArray(String[] array) {
		this.array = array;
	}

	public List<Integer> getList() {
		return list;
	}

	public void setList(List<Integer> list) {
		this.list = list;
	}

	public boolean isExist() {
		return isExist;
	}

	public void setExist(boolean isExist) {
		this.isExist = isExist;
	}

}
